package com.ai.model;

import com.ai.interfaces.Group1;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author zhuangwei
 * @Date 2020/11/26
 */
@Data
public class IndexRequest {

    @NotNull(message ="name 不能为空",groups = {Group1.class}) // 声明分组验证
    private String name;

    @NotBlank(message ="password 不能为空")
    private String password;

    @Email(message ="email 格式非法")
    @NotNull(message ="email 不能为空")
    private String email;
}
